convert hexadecimal string to byte array